<?= $this->partial('user/morelayout.phtml', array(
									'uid' => $this->uid, 
									'type' => $this->type,
									'myaction' => $this->myaction
									)
	); 
?>
<div class="frame_accountDiv">
<form name="userForm" id="userForm" action="administrator-user-doscore?uid=<?=$this->uid?>" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
    <tr>
      <td width="27%" class="ri-bbgg"> 产品质量：</td>
      <td width="73%" class="le">
	  	<?if($this->scoreArray[0]['quality']==''):?>
			<input class="score_item" type="text" value="0" name="quality" />
		<?else:?>
			<input class="score_item" type="text" value="<?=$this->scoreArray[0]['quality']?>" name="quality" />
		<?endif;?>
	  </td>
    </tr>
	<tr>
      <td width="27%" class="ri-bbgg"> 发货效率：</td>
      <td width="73%" class="le">
	 	<?if($this->scoreArray[0]['delivery']==''):?>
			<input class="score_item" type="text" value="0" name="delivery" />
		<?else:?>
			<input class="score_item" type="text" value="<?=$this->scoreArray[0]['delivery']?>" name="delivery" />
		<?endif;?>
	  </td>
    </tr>
	<tr>
	  <td colspan="2" class="se" align="center">
		<input type="button" value="提交" onclick="checkForm();" />
	  </td>
	</tr>
  </table>
  </form>
</div>
<script>
function checkForm(){
	var isTrue=true;
	$('.score_item').each(
		function(){
			if(!checkDecimal($(this).val())){
				isTrue=false;
				$(this).focus();
				$(this).select();
				alert('请检查分数是否有误！');
				return false;
			}
		}
	);
	if(isTrue){
		$('#userForm').submit();
	}
}
</script>
